package cn.yl.course.server.entity;

import cn.yl.api.server.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yl
 * @since 2022-04-22
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("course_play_history")
@ApiModel(value = "CoursePlayHistory对象", description = "")
public class CoursePlayHistory extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("课程id")
    @TableField("course_id")
    private Integer courseId;

    @ApiModelProperty("章节id")
    @TableField("section_id")
    private Integer sectionId;

    @ApiModelProperty("课时id")
    @TableField("lesson_id")
    private Integer lessonId;

    @ApiModelProperty("历史播放节点(s)")
    @TableField("history_node")
    private Integer historyNode;

    @ApiModelProperty("最高历史播放节点")
    @TableField("history_highest_node")
    private Integer historyHighestNode;

    @ApiModelProperty("是否删除")
    @TableField("is_del")
    @TableLogic
    private Boolean del;


}
